package com.mls.fivedistrict.entity.request;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by lixixi on 2018/7/17.
 */
@Getter
@Setter
public class ChangePasswordRequest {
    /**
     * 旧密码
     */
    @NotEmpty(message = "旧密码不能为空")
    private String oldPassword;

    /**
     * 新密码
     */
    @NotEmpty(message = "新密码号不能为空")
    @Length(min = 6, max = 20, message = "长度不符合规范为6-20为字符")
    private String newPassword;

}
